/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       progress_bar.h

	$Header: /game/progress_bar.h $

	$NoKeywords: $

 ************************************************************************/
#ifndef PROGRESS_BAR_H_INCLUDED
#define PROGRESS_BAR_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "bitmap_group_ptr.h"
#include "game_window.h"
#include "progress_handler.h"

// ----------------------------------------------------------------------
// progress bar control
// ----------------------------------------------------------------------
class t_progress_bar : public t_window, public t_progress_handler
{
public:
	t_progress_bar( t_screen_point point, t_window* parent, char const* bar_layer = "bar" );


protected:
	virtual void update_progress();

	t_window*          m_bar;
	t_bitmap_group_ptr m_bitmaps;
	int                m_maximum_width;
	t_uint32           m_last_update;
};

#endif // PROGRESS_BAR_H_INCLUDED